# coding=utf-8
from sqlalchemy import Column, BigInteger

from db_models.orm_base import BaseOrmClass


class UpdatedQuestions(BaseOrmClass):
    '''
    模型(表)备注:更新了的问题问题
    '''
    __tablename__ = 'updated_questions'

    '''      '''
    qid = Column(BigInteger(), primary_key=True)

    '''   文件更新的时间戳   '''
    update_time = Column(BigInteger(), nullable=False)

    def exclude(self): return ()

    @staticmethod
    def add(qid, update_time):
        item = UpdatedQuestions()
        item.qid = qid
        item.update_time = update_time
        return item
